﻿using ImoviesBlazorAntPro.Shared.Entities;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace ImoviesBlazorAntPro.Server.Repository
{
    public interface IAnimationVlinkRepository
    {
        /// <summary>
        /// 添加动漫播放链接
        /// </summary>
        /// <param name="animation"></param>
        void AddAnimationVlink(AnimationVlink animationVlink);

        /// <summary>
        /// 批量添加
        /// </summary>
        /// <param name="animationVlinks"></param>
        /// <returns></returns>
        Task BatchAddMovieVlink(IEnumerable<AnimationVlink> animationVlinks);


        /// <summary>
        /// 修改动漫播放链接
        /// </summary>
        /// <param name="animation"></param>
        void UpdateAnimationVlink(AnimationVlink animationVlink);

        /// <summary>
        /// 删除动漫播放链接
        /// </summary>
        /// <param name="animationVlinkId"></param>
        Task DeleteAnimationVlink(uint animationVlinkId);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        void DeleteBatch(List<uint> Ids);


        /// <summary>
        /// 保存操作
        /// </summary>
        /// <returns></returns>
        Task<bool> SaveAsync();
    }
}
